package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: WHY
 * Date: 2022-10-25
 * Time: 20:34
 */
public class Main {
    public static void main(String[] args) {
        Circle circle1=new Circle(4);
        System.out.println("圆的面积是"+circle1.getArea());
        System.out.println("圆的周长是"+circle1.getC());
        Rectangle rectangle=new Rectangle(3,4);
        System.out.println("矩形的面积是"+rectangle.getArea());
        System.out.println("矩形的周长是"+rectangle.getC());

    }
}
